package com.qf.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.qf.entity.OrderEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 
 * 
 * @author Java2102
 * @email Java2102@qf.com
 * @date 2021-07-20 10:35:04
 */
@Mapper
public interface OrderMapper extends BaseMapper<OrderEntity> {

    void insertOrder(@Param("order") OrderEntity order, @Param("tabIndex") Integer tabIndex);

    OrderEntity getOrderById(@Param("oid") String oid, @Param("tabIndex") Integer tabIndex);

    void updateOrderStatus(@Param("oid") String oid, @Param("status") Integer status, @Param("tabIndex") Integer tabIndex);

    OrderEntity getOrderInfoById(@Param("oid") String oid, @Param("tabIndex") Integer tabIndex);
}
